package models

import "gorm.io/gorm"

type Order struct {
	gorm.Model
	OrderSn      string  `gorm:"type:varchar(50);not null;comment:订单号"`
	Uid          int64   `gorm:"type:int(11);not null;comment:用户Id"`
	ProductId    int64   `gorm:"type:int(11);not null;comment:商品Id"`
	ProductImage string  `gorm:"type:varchar(255);not null;comment:商品图片"`
	ProductName  string  `gorm:"type:varchar(20);not null;comment:商品名称"`
	ProductPrice float32 `gorm:"type:decimal(10,2);not null;comment:商品价格"`
	Status       int64   `gorm:"type:int(3);not null;comment:状态 1-交易完成 2-交易成功 3-待支付 4-交易异常"`
}
